package com.rfzn.swipingcard

import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity

class LoginActivity:AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_login)
        AcitivityManager.instance.addActivity(this)

        App.setOnSwipingCardListener {
            runOnUiThread {
                findViewById<TextView>(R.id.tv_icCardNumber).text=it
            }
        }
    }

    override fun onDestroy() {
        super.onDestroy()
        AcitivityManager.instance.removeActivity(this)
    }
}